home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 212 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why does a compiled program fail on another machine?
  5. Date: Wed, 03 Jan 1996 12:04:46 GMT
  6. Organization: Netcom
  7. Message-ID: <30ea6efb.45638272@nntp.ix.netcom.com>
  8. References: <4cd8b9$aor@news1.usa.pipeline.com>
  9. NNTP-Posting-Host: ix-dc8-18.ix.netcom.com
  10. X-NETCOM-Date: Wed Jan 03  4:04:07 AM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. grantp@usa.pipeline.com(Pete) wrote:
  14.  
  15. |>On Jan 03, 1996 02:06:46 in article <Why does a compiled program
  16. fail on
  17. |>another machine?>, 'Douglas John Standen <John@metsys.demon.co.uk>'
  18. wrote: 
  19. |> 
  20. |> 
  21. |>>Having written and run a quite complex program, I find that it 
  22. |>>works perfectly on my 386/22 every time, but fails on my friends 
  23. |>>486 with acos domain error. 
  24. |> 
  25. |>Don't know what an "acos domain" error is -- but I do know it has 
  26. |>nothing to do with the C language.  Sounds like an OS or network 
  27. |>error. 
  28.  
  29. Why are you so sure that this has nothing to do with the C language?
  30. From 7.5.2.1 (ISO) of the C standard:
  31.  
  32.     The acos function computes the principal value of the arc 
  33.     cosine of x.  A domain error occurs for arguments not in the 
  34.     range [-1, 1].
  35.  
  36.  
  37. Michael M Rubenstein
  38.